package com.okbihuo.perm.mod.user.domain;

import com.okbihuo.perm.core.mp.base.MyIdModel;
import com.okbihuo.perm.core.mp.base.MyLogicModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户角色表
 * 非逻辑删除
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class AuthUserRole extends MyIdModel {
    @ApiModelProperty(value = "角色ID")
    private Long roleId;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "生效时间")
    private LocalDateTime startAt;
    @ApiModelProperty(value = "失效时间")
    private LocalDateTime expiresAt;
    @ApiModelProperty(value = "备注")
    private String remark;
}
